﻿using System;
using System.Runtime.InteropServices;
using BarcodeLib;

namespace WinUtilities.Class
{
    public static partial class GlobalUtilities
    {
        public static void CreateBarCode(string ValueToEncore, string PathToSave)
        {
            var barcode = new Barcode();
            barcode.Alignment = AlignmentPositions.CENTER;
            barcode.IncludeLabel = true;
            barcode.Encode(TYPE.CODE128, ValueToEncore, 316, 74);
            barcode.SaveImage(PathToSave, SaveTypes.JPG);
            barcode.Dispose();
        }
    }
}
